<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/*
  | -------------------------------------------------------------------
  | RESPONSE CODE TYPES
  | -------------------------------------------------------------------
  | This file contains arrays of response codes.  It is used by the
  | UI to help identify related messages.  The array keys are used to
  | identify the code and the array values are used to set the actual
  | web message.
 */
/*
---------------------------------------
      Responce code for Account
---------------------------------------
*/
$loginCode = array(
		'login successful' 								=> 0,
		'login unsuccessful'						    => 1,
		'missing request data' 							=> 2,
		'already logged in'							    => 3,
		'account not updated yet' 						=> 4,
		'invalid username or password' 					=> 5,
		'invalid email format' 							=> 6
	);

$createAccountCode = array(
    'activation code sent to user email' 				=> 0,
    'email id is already registered' 					=> 1,
    'missing request data' 								=> 2,
    'invalid email format' 								=> 3,
    'unsuccessfull (server response error)' 			=> 4
);
$activateAccountCode = array(
    'Activated successfully' 							=> 0,
    'Unsuccessful (server response error)'			    => 1,
    'activate user object  is missing' 					=> 2,
    'Invalid Email Format' 								=> 3,
    'Email address was not found in system' 			=> 4,
    'Invalid Activationcode' 							=> 5,
    'Account has already activated' 					=> 6
);
$deactivateAccountCode = array(
    'Deactivated successfully'								 => 0,
    'Invalid session key' 									 => 1,
    'password/SessionKey/emailAddress parameter is missing'	 => 2,
    'Login first to Deactivated' 							 => 3,
    'Invalid Email Id or Password' 							 => 4
);
$updateAccountCode = array(
    'Updated successfully' 								=> 0,
    'Unsuccessful update' 								=> 1,
    'Missing request data' 								=> 2
);

$userDetailsCode = array(
	'successful' 											=> 0,
	'invalid sessionKey'									=> 1,
	'missing request data'									=> 2,
	'user not found ' 										=> 3
);
$forgotPasswordAccountCode = array(
    'password sent to email' 									=> 0,
    'server response error. Could not send password to email' 	=> 1,
    'emailAddress parameter is missing' 						=> 2
);
/*
---------------------------------------
      Responce code for Spot Comment
---------------------------------------
*/
$addCommentCode = array(
	'successful' 																				=> 0,
	'Server response error. Could not add new comment!'											=> 1,
	'Missing mandatory request data either one or all (UserID, spotID, commentID, sessionKey)'	=> 2
);
$removeCommentCode = array(
	'successful' 																				=> 0,
	'Server response error. Could not remove spot comment!'										=> 1,
	'Missing mandatory request data either one or all (commentID)'								=> 2
);
$updateCommentCode = array(
	'successful' 																				=> 0,
	'Server response error. Could not update spot comment!'										=> 1,
	'Missing mandatory request data either one or all (commentID)'								=> 2
);
$getCommentsCode = array(
	'successful' 																				=> 0,
	'Server response error. Could not retrieve spot comments!'									=> 1,
	'Missing mandatory request data either one or all (sessionKey, spotID)'						=> 2
);
// there are two values corresponding to code 0(
//(1.No comments found
//	2. commentObj
$totalSpotCommentCode = array(
	'No comments found' 																		=> 0,
	'Server response error. Could not retrieve spot comments!'									=> 1,
	'Missing mandatory request data either one or all (sessionKey, spotID)'						=> 2
);
/*
---------------------------------------
      Responce code for trips
---------------------------------------
*/
$tripAddCode = array(
 'Trip add successful'                   		=> 0,
 'Server response error. Could not add trip!'   => 1,
 'Missing request data'      				    => 2
 
);

$tripUpdateCode =array(
    'Updated successfully'                  	=> 0,
 'Server error. Could not update trip details' 	=> 1,
 'Missing request data'       					=> 2
);

/*there are more than one values for the code 0(
1. No result found 
2. $tdata  
)*/
$tripUsertripsCode = array(
 'No result found'                                  	 	=> 0,
 'Server response error. Could not retrieve trip details.' 	=> 1,
 'Missing request data'                   					=> 2
);

/*there are more than one values for the code 0(
1. No result found 
2. $tdata  
)*/
$tripPublictripsCode = array(
 'No result found'                                   		=> 0,
 'Server response error. Could not retrieve trip details.'	=> 1
 
);

/*there are more than one values for the code 0(
1. No result found 
2. $tdata  
)*/
$tripUsertripCode = array(
 'No result found'                                   		=> 0,
 'Server response error. Could not retrieve trip details.' 	=> 1,
 'Missing request data'                   					=> 2
);

/*there are more than one values for the code 0(
1. No result found 
2. $tdata  
)*/


$tripPublictripCode = array(
 'No result found'                                   		=> 0,
 'Server response error. Could not retrieve trip details.' 	=> 1,
 'Missing request data'                   					=> 2
);

$tripDeleteCode = array(
 'Successfully deleted'                                		=> 0,
 'Server response error. Could not delete.'                 => 1,
 'Missing request data'                    					=> 2
);

$tripTotalCountCode = array(
 'Successful'                                        		=> 0,
 'Server response error. Could not count the total trips.'  => 1
);
/*
---------------------------------------
      Responce code for Spot
---------------------------------------
*/
$spotCreateCode = array(

 'Successful create'                       => 0,
 'Could not create spot'               	   => 1,
 'Missing request data'       			   => 2

);

$spotUpdateCode = array(
 
 'Updated successfully'                   => 0,
 'could not updated'                      => 1,
 'Missing request data'       			  => 2

);

$spotDeleteCode = array(
    
 'Deleted successfully'       => 0,
 'Could not deleted'          => 1,
 'Missing request data'       => 2
);

$spotSpotsbytripCode = array (
	'successful'                 => 0,
	'Could not retrive'          => 1,
	'Missing request data'       => 2
);

$spotSpotdetailsCode = array (
	'successful'                 => 0,
	'Could not retrive'          => 1,
	'Missing request data'       => 2
);

$spotSpostbyuserCode = array (
    'successful'                => 0,
 'Could not retrive'            => 1,
 'Missing request data'      	=> 2
);

/* End of file rest_response_codes.php */
/* Location: ./application/config/rest_response_codes.php */